export default class DataManager {
  dataMap = new Map();

  viewPort={
    x:0,
    y:0
  }
  currentLayer="base";
  currentMousePos={}
  canvasLayers = [];

  UIslectNode={node:{},selected:{}}

  renderDatas = []
  stickyGrid = true
  commands=[]
  currentCommand=""
  worldScale = {
    scale: 2,
    oldScale: 2
  };
  worldTransForm ={
    x:0,y:0,fixedTransform:{ x:0,y:0}
  }
  gridSize = 1;
  constructor(props) {}
  static instance() {
    if (!DataManager._instance) {
      DataManager._instance = new DataManager();
    }

    return DataManager._instance;
  }
  
 
  setData(name, obj) {
    this.dataMap.set(name, obj);
  }
  getData(name) {
    this.dataMap.get(name);
  }
}
